<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class SwtMerchantProfit extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'swt_merchant_profit';


    protected $guarded = [];

    public function order()
    {
        return $this->hasOne(SwtOrder::class, 'id', 'order_id');
    }

    public function merchant()
    {
        return $this->hasOne(SwtMerchant::class, 'id', 'merchant_id');
    }
}
